
let helper = {
    returnTimeToStr: function(arr){
        let str = arr[0] + '-' + helper.getTwoStr(arr[1]) + '-' + helper.getTwoStr(arr[2]);
        str += ' ' + helper.getTwoStr(arr[3]) + ':' + helper.getTwoStr(arr[4]);

        return str;
    },
    getTwoStr: function(num){
        let numS = num + '';
        if(numS.length==1){
            numS = '0'+numS;
        }
        return numS;
    }
}

module.exports = helper;
